package com.kingsoft.miot.bridge.service;

import java.util.List;

import com.kingsoft.miot.bridge.controller.req.OrderBy;
import com.kingsoft.miot.bridge.controller.resp.PageResult;
import com.kingsoft.miot.bridge.pojo.hotel.RoomInfo;

/**
 * 房间 设施服务
 * 
 * @author HUJIANQING
 *
 */
public interface RoomService {

	/**
	 * 新增room
	 * 
	 * @param roomInfo
	 */
	public void insertOne(RoomInfo roomInfo);

	/**
	 * 通过room_id 获取room信息
	 * 
	 * @param room_info_id
	 * @return
	 */
	public RoomInfo getByRoomInfoId(int room_info_id);

	/**
	 * 通过hotel id 获取room info
	 * 
	 * @param hotel_info_id
	 * @return
	 */
	public List<RoomInfo> getByHotelInfoId(int hotel_info_id);

	/**
	 * 获得所有Room info
	 * 
	 * @return
	 */
	public List<RoomInfo> findAll();

	/**
	 * 通过分页和查询条件查询酒店房间
	 * 
	 * @param currentPage
	 * @param pageSize
	 * @param orderByList
	 * @return
	 */
	public PageResult<RoomInfo> findHotelRoomByPage(int hotel_info_id, int currentPage, int pageSize,
			List<OrderBy> orderByList);

}
